home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 65.zip / BS1 part 65 / DevPac v3.02b.adf / include / libraries / diskfont.i < prev    next >
Text File  |  1991-11-20  |  2KB  |  73 lines

  1.     IFND    LIBRARIES_DISKFONT_I
  2. LIBRARIES_DISKFONT_I    SET    1
  3. **
  4. **    $Filename: libraries/diskfont.i $
  5. **    $Release: 1.3 $
  6. **
  7. **    diskfont library definitions 
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.    IFND        EXEC_NODES_I
  14.    INCLUDE     "exec/nodes.i"
  15.    ENDC
  16.    IFND        EXEC_LISTS_I
  17.    INCLUDE     "exec/lists.i"
  18.    ENDC
  19.    IFND        GRAPHICS_TEXT_I
  20.    INCLUDE     "graphics/text.i"
  21.    ENDC
  22.  
  23. MAXFONTPATH EQU      256    ; including null terminator
  24.  
  25.  STRUCTURE  FC,0
  26.    STRUCT   fc_FileName,MAXFONTPATH
  27.    UWORD fc_YSize
  28.    UBYTE fc_Style
  29.    UBYTE fc_Flags
  30.    LABEL fc_SIZEOF
  31.  
  32. FCH_ID        EQU      $0f00
  33.  
  34.  STRUCTURE  FCH,0
  35.    UWORD fch_FileID  ; FCH_ID
  36.    UWORD fch_NumEntries ; the number of FontContents elements
  37.    LABEL fch_FC         ; the FontContents elements
  38.  
  39.  
  40. DFH_ID        EQU      $0f80
  41. MAXFONTNAME EQU      32 ; font name including ".font\0"
  42.  
  43.  STRUCTURE  DiskFontHeader,0
  44.     ; the following 8 bytes are not actually considered a part of the
  45.     ; DiskFontHeader, but immediately preceed it.  The NextSegment is supplied
  46.     ; by the linker/loader, and the ReturnCode is the code at the beginning
  47.     ; of the font in case someone runs it...
  48.     ; ULONG dfh_NextSegment   ; actually a BPTR
  49.     ; ULONG dfh_ReturnCode    ; MOVEQ #0,D0 : RTS
  50.     ; here then is the official start of the DiskFontHeader...
  51.    STRUCT   dfh_DF,LN_SIZE    ; node to link disk fonts
  52.    UWORD dfh_FileID          ; DFH_ID
  53.    UWORD dfh_Revision          ; the font revision in this version
  54.    LONG     dfh_Segment          ; the segment address when loaded
  55.    STRUCT   dfh_Name,MAXFONTNAME ; the font name (null terminated)
  56.    STRUCT   dfh_TF,tf_SIZEOF  ; loaded TextFont structure
  57.    LABEL dfh_SIZEOF
  58.  
  59.  
  60.    BITDEF   AF,MEMORY,0
  61.    BITDEF   AF,DISK,1
  62.  
  63.  STRUCTURE  AF,0
  64.    UWORD af_Type    ; MEMORY or DISK
  65.    STRUCT   af_Attr,ta_SIZEOF ; text attributes for font
  66.    LABEL af_SIZEOF
  67.  
  68.  STRUCTURE  AFH,0
  69.    UWORD afh_NumEntries       ; number of AvailFonts elements
  70.    LABEL afh_AF        ; the AvailFonts elements
  71.  
  72.     ENDC    ; LIBRARIES_DISKFONT_I
  73.